﻿using AutoMapper;
using S.EliminationOrDath.API.Application.Command.SheepDeathCommand;
using S.EliminationOrDath.API.Dtos;
using S.EliminationOrDath.Domain.Models;

namespace S.EliminationOrDath.API.Extensions.AutoMapper
{
    public class SetProfile : Profile
    {
        public SetProfile()
        {
            //淘汰Model和Dtos互相映射
            CreateMap<EliminationModel, EliminationDtos>().ReverseMap();
            //死亡Model和死亡中介者command相互映射
            CreateMap<SheepDeathUpdateCommand,DeathModel>().ReverseMap();
            //羊只死亡model和Dto相互映射
            CreateMap<DeathModel,DeathDto>().ReverseMap();
        }
    }
}
